package com.qhgrain.api.menurolepermission.service;

import java.util.List;

import com.qhgrain.api.menurolepermission.entity.RolePermission;

public interface IRolePermissionService {

	List<RolePermission> queryByPermissionId(String permissionId);
	
	/**
	 * 获取角色拥有权限 
	 *@param rp 角色ID 
	 *@return 
	*/
	List<RolePermission> queryByRoleId(String roleId,String appId);
	
	void addAndDelete(String roleId,List<String> addPermissionIds,List<String> deletePermissionIds);
}
